import pyximport; pyximport.install()
from func_recons1 import ftry
from pylab import *

import os

names=sort(os.listdir('images'))

images=[]

for name in names:
	if 'svn' in name: pass
	else:
		capturada=imread('images/'+name)[:,:,0].astype(double)
		#~ capturada=capturada[200:850,130:815]
		binarizada=capturada>.2*capturada.max()
		images.append(binarizada)
		print 'images/'+name


mat0=ftry(images[0],images[1],images[2],images[3],images[4],images[5],images[6],images[7])

figure()
imshow(mat0)
gray()

imsave('cos_gray.png',mat0)
